package com.sumainfor.pc.cfo.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.cfo.fallback.FeignZuulFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Collection;

/**
 * @Author PuaChen
 * @Create 2019-05-06 15:39
 */
@FeignClient(name = "tangnest-zuul", fallback = FeignZuulFallback.class)
public interface BaseZullFeign {

    /**
     * 调用Zuul 获取用户的信息 和部门名称
     * <p>
     * select u.user_id,u.dept_id,u.no,u.name as username,u.email,u.phone,u.mobile,u.user_img
     * ,d.name as deptName
     *
     * @return Map结构数据
     */
    @PostMapping("/provider/getUser")
    JsonResult getUserInfo(@RequestBody Collection<String> ids);

}
